﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using XinYi.CrookedShowMode;
using XinYi.CrookedTopShow.BLL;

namespace XinYi.CrookedShow.Controllers
{
    public class SMSCodeController : Controller
    {
        // GET: SMSCode
        public JsonResult GetCode(string phone)
        {
            Operate operate = new Operate();
            SMSInfoSerivice sMSInfoSerivice = new SMSInfoSerivice();
            operate.Success = sMSInfoSerivice.GetCode(phone);
            return Json(operate);
        }
        public JsonResult SelCodePhone(SMSInfo sMSInfo)
        {
            Operate operate = new Operate();
            SMSInfoSerivice sMSInfoSerivice = new SMSInfoSerivice();
            operate.Success = sMSInfoSerivice.SelCodePhone(sMSInfo);
            return Json(operate);
        }
    }
}